package com.woniuxy.mapper;


import com.woniuxy.entity.SysOrganization;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysOrganizationMapper {
    //查询所有机构
    List<SysOrganization> findAllSysOrganization();
    //查询指定id机构
    SysOrganization findSysOrganizationById(Integer id);
    //根据机构名称模糊查询机构
    List<SysOrganization> findSysOrganization(String orgName);
    //添加机构
    Integer addSysOrganization(SysOrganization sysOrganization);
    //逻辑删除机构
    Integer deleteSysOrganization(Integer id);
    //修改状态
    Integer updateStatus(@Param("id") Integer id,@Param("status")Integer status);

}
